package com.study.dubbo.service;

import com.alibaba.dubbo.config.spring.context.annotation.DubboComponentScan;
import com.study.dubbo.service.springpplication.DubboStartSpringApplication;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@Slf4j
@DubboComponentScan(basePackages = {"com.study.dubbo.service.service.impl","com.study.dubbo.service.service.mock","com.study.dubbo.service.zipkin"})
public class ServiceApplication {

	public static void main(String[] args) {
		DubboStartSpringApplication.dubboRun(ServiceApplication.class, args);
//		ApplicationContext ctx = new SpringApplicationBuilder()
//				.sources(ServiceApplication.class).web(WebApplicationType.NONE)
//				.run(args);
//		Main.main(args);
	}
}
